package com.ruoyi.project.charging.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.charging.mapper.CChargingCollectorMapper;
import com.ruoyi.project.charging.domain.CChargingCollector;
import com.ruoyi.project.charging.service.ICChargingCollectorService;

/**
 * 总控器数据Service业务层处理
 * 
 * @author Yaoxuan Mo
 * @date 2025-07-28
 */
@Service
public class CChargingCollectorServiceImpl implements ICChargingCollectorService 
{
    @Autowired
    private CChargingCollectorMapper cChargingCollectorMapper;

    /**
     * 查询总控器数据
     * 
     * @param collectorId 总控器数据主键
     * @return 总控器数据
     */
    @Override
    public CChargingCollector selectCChargingCollectorByCollectorId(Long collectorId)
    {
        return cChargingCollectorMapper.selectCChargingCollectorByCollectorId(collectorId);
    }

    /**
     * 查询总控器数据列表
     * 
     * @param cChargingCollector 总控器数据
     * @return 总控器数据
     */
    @Override
    public List<CChargingCollector> selectCChargingCollectorList(CChargingCollector cChargingCollector)
    {
        return cChargingCollectorMapper.selectCChargingCollectorList(cChargingCollector);
    }

    /**
     * 新增总控器数据
     * 
     * @param cChargingCollector 总控器数据
     * @return 结果
     */
    @Override
    public int insertCChargingCollector(CChargingCollector cChargingCollector)
    {
        return cChargingCollectorMapper.insertCChargingCollector(cChargingCollector);
    }

    /**
     * 修改总控器数据
     * 
     * @param cChargingCollector 总控器数据
     * @return 结果
     */
    @Override
    public int updateCChargingCollector(CChargingCollector cChargingCollector)
    {
        return cChargingCollectorMapper.updateCChargingCollector(cChargingCollector);
    }

    /**
     * 批量删除总控器数据
     * 
     * @param collectorIds 需要删除的总控器数据主键
     * @return 结果
     */
    @Override
    public int deleteCChargingCollectorByCollectorIds(Long[] collectorIds)
    {
        return cChargingCollectorMapper.deleteCChargingCollectorByCollectorIds(collectorIds);
    }

    /**
     * 删除总控器数据信息
     * 
     * @param collectorId 总控器数据主键
     * @return 结果
     */
    @Override
    public int deleteCChargingCollectorByCollectorId(Long collectorId)
    {
        return cChargingCollectorMapper.deleteCChargingCollectorByCollectorId(collectorId);
    }
}
